package com.lagou.edu.wwyan.nacos.code.service;

import com.lagou.edu.wwyan.nacos.code.service.impl.LagouUserFeignClientFailBack;
import com.lagou.edu.wwyan.nacos.user.service.LagouUserService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
//@FeignClient(value = "lagou-service-user-nacos",contextId = "lagouUserFeignClient",path = "/user",fallback = LagouUserFeignClientFailBack.class)
public interface LagouUserFeignClient extends LagouUserService {
    @GetMapping("isRegistered/{email}")
    Boolean isRegister(@PathVariable String email);
}
